package homework.four;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class Text {


        public static void main(String[] args) {

            String filePath = "output.txt";

            try (BufferedReader reader = new BufferedReader(new FileReader(filePath))) {
                String line;
                System.out.println("文件内容:");


                while ((line = reader.readLine()) != null) {
                    System.out.println(line);
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

}
